// 工单类型
import request from '@/utils/request'

export function getWorkOrderTypePage(data) {
  return request({
    url: '/work/orderType/page',
    method: 'get',
    params: data
  })
}

export function addWorkOrderType(data) {
  return request({
    url: '/work/orderType',
    method: 'post',
    data
  })
}

export function getWorkOrderTypeInfo(id) {
  return request({
    url: `/work/orderType/info/${id}`,
    method: 'get',
  })
}

export function updateWorkOrderType(data) {
  return request({
    url: 'work/orderType',
    method: 'put',
    data
  })
}

export function deleteWorkOrderType(ids) {
  return request({
    url: `/work/orderType/${ids}`,
    method: 'delete',
  })
}